// 泛型约束
function echoWithArr(arg) {
    console.log(arg.length);
    return arg;
}
var str = echoWithArr('str');
var obj = echoWithArr({ length: 10, width: 10 });
var arrList = echoWithArr([1, 2, 3]);
